<div class="span12">
	<div class="content">
		<h1>Баннер справа</h1>

		<?php 
		$this->db->where('id', 1);
		$banner = $this->db->get('right_banner')->result();
		$banner = $banner[0]; ?>

		<img src="<?= $banner->img_url ?>" style="width: 200px">
		<?php 
		$attributes = array('id' => 'myform');
		echo form_open_multipart('mgmt/addRightBannerPerform/', $attributes); 
		?>
			<h3>Выберите изображение</h3>
			<input type="file" name="userfile" size="20" /> 
			<div class="select-div"></div>

			<input type="hidden" name="img_url" value="someimageurl" />
			<input type="text" name="url" value="<?= $banner->url; ?>" />
									
			<input type="submit" id="send" value="Сохранить" class="btn btn-primary" />
		</form>
	</div>
</div>
